package com.asin.helloworld.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Asin
 */
@Controller
public class HelloController {
    @ResponseBody
    @RequestMapping("hello")
    public String hello(){
        System.out.println("hello,Spring!");
        return "hello,Spring!";
    }
}
